import { ApiProperty, PartialType } from '@nestjs/swagger';
import { PartialType as mappedTypes } from '@nestjs/mapped-types';
export class CreateSettingDto {
  @ApiProperty({ description: '网站名称', example: 'cms网站' })
  siteName: string;

  @ApiProperty({ description: '网站描述', example: '描述' })
  siteDescription: string;

  @ApiProperty({ description: '邮箱', example: '21321@qq.com' })
  contactEmail: string;
}

export class UpdateSettingDto extends mappedTypes(
  PartialType(CreateSettingDto),
) {
  id: string;
}
